package com.usefullc.demo.query;

import com.usefullc.common.enums.QueryExpressTypeEnum;
import com.usefullc.common.enums.ValidTypeEnum;
import com.usefullc.system.query.BaseQuery;
import com.usefullc.system.validator.UsefulPropertyVerify;
import com.usefullc.system.service.component.extend.UsefulQueryField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 请假条查询实体
 * @author: 星空
 * @date: 2022-07-27
 */
@ApiModel
@Data
public class ApplyDayOffQuery extends BaseQuery {

//useful_auto_generate_section_start

    @UsefulQueryField()
    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "申请人")
    private Long userId;

    @UsefulQueryField()
    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "审核人")
    private Long auditUserId;

    @UsefulQueryField()
    @UsefulPropertyVerify(min=-2147483648, max=2147483647)
    @ApiModelProperty(notes = "审核状态")
    private Integer status;

    @UsefulQueryField(type = QueryExpressTypeEnum.GE, columnName = "offDayStart")
    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "开始时间开始")
    private Date offDayStartStart;

    @UsefulQueryField(type = QueryExpressTypeEnum.LE, columnName = "offDayStart")
    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "开始时间结束")
    private Date offDayStartEnd;

    @UsefulQueryField(type = QueryExpressTypeEnum.GE, columnName = "offDayEnd")
    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "结束时间开始")
    private Date offDayEndStart;

    @UsefulQueryField(type = QueryExpressTypeEnum.LE, columnName = "offDayEnd")
    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "结束时间结束")
    private Date offDayEndEnd;


//useful_auto_generate_section_end

}
